<!-- 登录吗？？？？？？？？？？？？？？？ -->
<template>
  <div class="box">
    <div class="box-header">
      <div @click="fanhui">《返回</div>
      <div>登录</div>
      <div></div>
    </div>
    <div class="box-bbody">
      <img
        src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic.51yuansu.com%2Fpic3%2Fcover%2F01%2F00%2F63%2F58de35e5d8266_610.jpg&refer=http%3A%2F%2Fpic.51yuansu.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1633165805&t=2f858fab945c56d8abc8c52a72693ddd"
        alt=""
      />
    </div>
    <div class="box-fonder-on"></div>
    <div class="box-footer">
      <div></div>
      <div class="han-deng">
        <p><b>您好，小程序需要你的授权才能够更好的-</b></p>
        <span> <b>为您服务</b> </span>
        <p><span>需要获取你的(头像，昵称，手机号等)</span></p>
        <div>
          <button class="button1" @click="quxiao">取消登录</button>
          <button class="button2" @click="queding">确定登陆</button>
        </div>
      </div>
      <div></div>
    </div>
  </div>
</template>

<script>
export default {
  //import引入的组件需要注入到对象中才能使用
  components: {},
  data() {
    //这里存放数据
    return {};
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //方法集合
  methods: {
    fanhui() {
      //返回
      this.$router.push("/Home");
    },
    queding() {
      //主页
      this.$router.push("/Zhuyu");
    },
    quxiao() {
      //取消登录并返回home
      this.$router.push("/Home");
    },
  },
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
};
</script>
<style lang='scss' scoped>
.box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.box-header {
  width: 100%;
  height: 50px;
  color: #fff;
  background: rgb(20, 73, 250);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 10px;
}
.box-bbody {
  width: 100%;
  flex: 1;
  overflow-x: hidden;
  background: #ccc;
  position: relative;
}

.box-footer {
  margin-top: 350px;
  position: absolute;
  width: 100%;
  height: 150px;
  //   border: 1px solid #000;
  //   background: paleturquoise;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.han-deng {
  width: 80%;
  height: 150px;
  border-radius: 10px;
  background: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  padding: 0px 20px;
  border: 1px solid #ccc;
}
.han-deng p {
  margin: 10px 0px;
  font-size: 14px;
}
.han-deng p span {
  color: #ccc;
}
.han-deng span {
  width: 100%;
  height: 20px;
  text-align: center;
  line-height: 20px;
}
.han-deng div {
  width: 100%;
  height: 30px;
  //   background: orange;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.han-deng div button {
  width: 100px;
  height: 30px;
  border-radius: 20px;
  text-align: center;
  line-height: 30px;
  //   border: none;
  outline: none;
}
.button1 {
  border: 1px solid #ccc;
  background: #fff;
  color: #000;
}
.button2 {
  border: 1px solid rgb(255, 255, 255);
  background: red;
  color: #fff;
}
</style>